# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-packer
pkgver=0.0.0_git20220225
_commit=c576ab3f1488ee86d60fd340d01ade08dcabd256
pkgrel=1
pkgdesc="use-package inspired plugin manager for neovim"
url="https://github.com/wbthomason/packer.nvim"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
source="https://github.com/wbthomason/packer.nvim/archive/$_commit/nvim-packer-$pkgver.tar.gz"
builddir="$srcdir/packer.nvim-$_commit"
options="!check" # requires entire neovim tree

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua doc "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
d604f86a9e72321b5d70a5074f26eaa413ac7fc21d32a0b222960d4d3c7ebe0d9e622b12d6b23dd543c715772c20239b77820ae8564f8c8eb35665e17e3352b8  nvim-packer-0.0.0_git20220225.tar.gz
"
